/******************************************************************************
 *
 * 版权所有：安徽匠桥电子信息有限公司
 *
 ******************************************************************************
 * 注意：本内容仅限于安徽匠桥电子信息有限公司内部使用，禁止转发
 *****************************************************************************/
package com.test.service.impl;

import com.java.wechat.comm.dto.Msg;
import com.java.wechat.comm.sdk.Api;
import com.java.wechat.service.DispatchService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * @author swc
 */
@Service
public class MsgServiceImpl extends DispatchService {

    private Logger logger =LoggerFactory.getLogger(MsgServiceImpl.class);

    @Override
    public void privateMsg(Msg msg) {
        try{
            //发送文件
//            Api.send_image_msg(msg.getRobotWxid(),msg.getFromWxid(),"http://www.keaimao.com/picture/join_group.png");
            Api.send_image_msg(msg.getRobotWxid(),msg.getFromWxid(),"F:\\join_group.png");
            Api.send_file_msg(msg.getRobotWxid(),msg.getFromWxid(),"F:\\Butter-Fly -tri.Version.mp3");
            Api.send_file_msg(msg.getRobotWxid(),msg.getFromWxid(),"F:\\新商户联调指南—代收付篇.docx");
            Api.send_text_msg(msg.getRobotWxid(), msg.getFromWxid(),"消息:"+msg.getMsg());
            Api.send_music_msg(msg.getRobotWxid(), msg.getFromWxid(),"勇气");

        }catch (Exception ex){
            logger.error(ex.getMessage());
        }
    }

    @Override
    public void groupMsg(Msg msg) {

    }

    @Override
    public void unknowMsg(Msg msg) {

    }


    @Override
    public void memberDec(Msg msg) {

    }

    @Override
    public void verfigy(Msg msg) {

    }

    @Override
    public void scanCashMoney(Msg msg) {

    }

    @Override
    public void transfer(Msg msg) {

    }

    @Override
    public void memberAdd(Msg msg) {

    }
}
